package com.mccree.mapper;

import com.mccree.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EmployeeMapper {
    //获取全部员工信息
    List<Employee> queryEmpList();
    //根据id获取员工信息
    Employee queryEmpById(@Param("id")Integer id);
    //根据id修改员工信息
    Integer updateEmpById(Employee employee);
    //新增员工
    Integer addEmp(Employee employee);
    //根据id删除员工信息
    void removeEmp(@Param("id")Integer id);
}
